package com.itheima.leyou.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.leyou.dto.UserDTO;
import com.itheima.leyou.dto.UserDetail;
import com.itheima.leyou.entity.User;

import java.util.List;

public interface UserService  extends IService<User> {
    UserDTO loginUser(String username, String password);

    void registry(User user, String code);

    void sendMgs(String phone);

    Boolean isExists(String data, Integer type);

    UserDetail checkLogin(String token);
}
